package com.darcytech.debezium.server.service;


import com.darcytech.debezium.core.api.Api;
import com.darcytech.debezium.core.api.bo.RegisterInfo;
import com.darcytech.debezium.core.api.bo.RegisterResult;
import org.springframework.stereotype.Component;


@Component
public class RegisterService {

    private final Api api;

    public RegisterService(Api api) {
        this.api = api;
    }

    public RegisterResult register(RegisterInfo registerInfo) {
        return api.registerConnector(registerInfo);
    }
}
